<?php

require_once('./AES.php');
require_once('./RSA.php');
require_once('./BigInteger.php');

/*$aes = new Crypt_AES();

$aes->setKey('1234567892023456');

$plaintext="[12,20]";

echo base64_encode($aes->encrypt($plaintext));
*/

/*$rsa = new Crypt_RSA();

$key = Array();
$key['e'] = new Math_BigInteger("17");
$key['n'] = new Math_BigInteger("155702305032304747173254009063032549015655963297049531575841755706823142427848168903231194631718403565406058236363339060167631372216854140108618389957047591619526377974676149699474529622903788249731954093780206129332727510456588445226064294439944577512160490456417274647382316382260796948669518263074094837801");
//以原始数组方式读入pubkey
$rsa->loadKey($key,CRYPT_RSA_PUBLIC_FORMAT_RAW);

$plaintext = "12345678901234561234567890123456";
$ciphertext = $rsa->encrypt($plaintext);

echo base64_encode($ciphertext);
*/

?>